﻿using QMERP.SeedWork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 库存
    /// </summary>
    public partial class Stock : FullEntity<long>
    {
        public Stock() 
        {
            StockDetails = new HashSet<StockDetail>();
        }
        /// <summary>
        /// 仓库Id
        /// </summary>
        public long WarehouseId { get; set; }
        /// <summary>
        /// 镜种Id
        /// </summary>
        public long LensId { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public virtual Warehouse? Warehouse { get; set; }
        /// <summary>
        /// 镜种
        /// </summary>
        public virtual Lens? Lens { get; set; }
        /// <summary>
        /// 库存详情列表
        /// </summary>
        public virtual ICollection<StockDetail> StockDetails { get; set; }
    }
}
